package com.sk.sourcecircle.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.hyphenate.chat.EMConversation;

/**
 * Created by sk on 2018/1/4.
 */

public class MyEMConversation implements MultiItemEntity {

    private EMConversation conversation;

    public EMConversation getConversation() {
        return conversation;
    }

    public void setConversation(EMConversation conversation) {
        this.conversation = conversation;
    }

    @Override
    public int getItemType() {
        if(conversation.getType() == EMConversation.EMConversationType.Chat){
            return 1;
        }else {
            return 2;
        }
    }
}
